package me.pplay.playtalk.activity;

import me.pplay.playtalk.ApplicationTrans;
import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;

public class CommonActivityGroup extends ActivityGroup {

	public void startActivity(String viewID, Intent intent){
		this.setContentView(getLocalActivityManager().startActivity(viewID, intent).getContainer().getDecorView());
	}
	

	public void backActivity(){
		
	}
	
	@Override
	public void onBackPressed() {
		super.onBackPressed();
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
   		this.getLocalActivityManager().getCurrentActivity().onBackPressed();
		return true;
	}
	
}
